import {
	post,
	get
} from "./request.js";
import {
	useStore
} from '@/store/user';

/**
 * 查询
 */
export const apiQueryPlan = (date) => {
	return post('api/plan/active/query/week', {
		'queryDate': date
	}, {
		'Content-Type': 'application/json'
	})
}

/**
 * 创建
 */
export const apiCreatePlan = (data) => {
	return post('api/plan/active/create', data, {
		'Content-Type': 'application/json'
	})
}

/**
 * 编辑
 */
export const apiUpdatePlan = (data) => {
	return post('api/plan/active/put', data, {
		'Content-Type': 'application/json'
	})
}

/**
 * 完结
 */
export const apiCompletePlan = (data) => {
	return post('api/plan/active/complete', data, {
		'Content-Type': 'application/json'
	})
}